#include "user_settings.h"
#include "ui_user_settings.h"

user_settings::user_settings(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::user_settings)
{
    ui->setupUi(this);
    InitUi();
}

user_settings::~user_settings()
{
    delete ui;
}

void user_settings::showEvent(QShowEvent *)
{
    setWindowModality(Qt::ApplicationModal);
}

void user_settings::InitUi()
{
    setWindowTitle(tr("Settings"));
    ui->tabWidget->removeTab(0);
    ui->tabWidget->removeTab(0);
    form_language = new Form_language();
    ui->tabWidget->addTab(form_language, tr("Language"));
    hotkey = new HotKey(ui->tabWidget);
    ui->tabWidget->addTab(hotkey, tr("快捷键"));
    hotkey->resize(this->width(), this->height());
}
